/******************************************************************
Copyright © LibKz 2017~2023. All rights reserved.
* @projectName   LibKz
* @author        Raiiwhen
* @email         masterraii@icloud.com
* @origin        05_Console\00_KingsHand\KingsHandVerX\Drv\MeX_TXer\Src
*******************************************************************/
#ifndef _TX_H_
#define _TX_H_

#include "main.h"

typedef struct _dev_SBUS
{
    uint16_t ch[8];
    uint8_t sw;
    uint8_t pkg[32];

    uint8_t ch_bias[8];
    uint16_t ch_max[8];
    uint16_t ch_min[8];

    uint8_t cfg_order[16];
    uint8_t cfg_ifConvert[2];
}dev_SBUS;


uint8_t ADC_Update(uint16_t* buf);
uint8_t nRF_Pkg_Update(void);

#endif
